package com.xdjd.task.model.activity;

import com.xdjd.task.model.member.MemberUserWalletPo;
import net.oschina.durcframework.easymybatis.dao.CrudDao;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface MemberUserWalletPoDao extends CrudDao<MemberUserWalletPo> {
    @Update("update member_user_wallet set obtain_coin=obtain_coin+#{obtainCoins} where member_id=#{memberId}")
    int addObtainCoin(@Param("memberId") Long memberId, @Param("obtainCoins") Integer obtainCoins);
}